package cn.zlj.nmcc.service;

import cn.zlj.nmcc.domain.CourseDoc;
import cn.zlj.nmcc.result.JSONResult;
import cn.zlj.nmcc.service.iml.CourseEsServicefallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(
        value = "service-search",
        path = "/course-es",
        fallbackFactory = CourseEsServicefallbackFactory.class
)
public interface CourseEsService {
      @PostMapping("/save")
     JSONResult saveEs(@RequestBody CourseDoc courseDoc);
}
